import { useNavigate } from 'react-router-dom';
import styles from './index.module.less';
import notfind from '/public/imgs/page/404.png';
const NotFind = () => {
  const navigateTo = useNavigate();

  // 返回首页
  const goHome = () => {
    navigateTo('/');
  };

  return (
    <div className={styles.pageBox}>
      <img src={notfind} className={styles.imgBox} />
      <div className={styles.btnBox} onClick={goHome}>
        返回首页
      </div>
    </div>
  );
};

export default NotFind;
